package service.impl;

import mapper.LivecommerceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import entity.Livecommerce;
import service.LivecommerceService;

import java.util.List;
@Service("livecommerceService")
public class LivecommerceServiceImpl implements LivecommerceService {

    @Autowired
    private LivecommerceMapper livecommerceMapper;

    @Override
    public Livecommerce findById(Integer id) {
        return livecommerceMapper.findById(id);
    }

    @Override
    public List<Livecommerce> selectPageList() {
        return livecommerceMapper.selectPageList();
    }

    @Override
    public int add(Livecommerce flower) {
        return livecommerceMapper.add(flower);
    }

    @Override
    public int update(Livecommerce flower) {
        return livecommerceMapper.update(flower);
    }
}
